package com.laolang.shop.modules.front.web.front;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
@Controller
public class IndexFrontController {

    @ResponseBody
    @GetMapping("/")
    public Map<String, Object> index() {
        Map<String, Object> map = new HashMap<>();
        map.put("username", "laolang");
        map.put("uid", "u1");
        return map;
    }
}
